console.log "application launch",new Date()


startApp = ()->
	$A().app().alert "Start application ?", "好吧", (position,name)-> 
		# console.log "position",position,name
		$A().page().open "main>>identifier", parameter:"传来的参数", {} if position 

$A().http().download "http://www.littocats.org:3000/download/ios?project=ECS+DevelopKit"
.then (res)->
	return console.log "download project source faild" if !res
	# console.log "download done",res
	$A().fs().unCompress res,"./Library"
	.then (success)-> 
		# console.log "unCompress done",success
		startApp()

